const resolve = require('@rollup/plugin-node-resolve');
const commonjs = require("@rollup/plugin-commonjs");
const typescript = require('rollup-plugin-typescript2');
const path = require('path');

const workSpaceDir = path.resolve(__dirname, "../");

/**
 * 开发环境配置
 * @type {import('rollup').RollupOptions}
 */
module.exports = {
    input: path.join(workSpaceDir, "src/Vendor.ts"),


    output: {

        file: path.join(workSpaceDir, "bin/js/vendor.js"),
        format: "iife",
        name: "__$tsrpc__",
        // sourcemap: true

    },

    plugins: [
        typescript(),
        resolve(),
        commonjs(),
    ]
}


